package io.github.center.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

/**
 * 配置类
 *
 * @author haijun
 * @version 1.0.0
 * @email "1424132610@qq.com"
 * @date 2024.10.19 11:14
 * @since 1.0.0
 */
@Data
@ConfigurationProperties(prefix = ApplicationProperties.PREFIX)
public class ApplicationProperties {

    /**
     * PREFIX
     */
    public static final String PREFIX = "io.github.center";

    /**
     * 配置忽略路径
     */
    private Auth auth = new Auth();

    /**
     * 配置路径
     *
     * @author haijun
     * @version 1.0.0
     * @email "1424132610@qq.com"
     * @date 2024.10.19 11:14
     * @since 1.0.0
     */
    @Data
    public static class Auth {

        /**
         * 是否开启鉴权
         */
        private boolean enable;

        /**
         * 鉴权忽略路径
         */
        private List<String> ignores;
    }

}
